var initionstate= {};

function details(state=initionstate,action){
  
    switch(action.type){
    case'TO_DETAILS':
        return [...state,action.payload];
    default:
    return state;    
    }
}
export default details;